import pyecharts.options as opts
from pyecharts.charts import Gauge

class Yb:
    def __init__(self):
        (
            Gauge(init_opts=opts.InitOpts(width="100%", height="100%"))
                .add(series_name="业务指标", data_pair=[["完成率", 55.5]])
                .set_global_opts(
                legend_opts=opts.LegendOpts(is_show=False),
                tooltip_opts=opts.TooltipOpts(is_show=True, formatter="{a} <br/>{b} : {c}%"),
            )
                .render("templates/yb.html")
        )
Yb()
